package com.mrent.service;

import java.util.List;

import com.mrent.entity.Order;

public interface OrderService {
	
	/**
	 * 保存订单.
	 * 
	 * @param order
	 */
	public void saveOrder(Order order);
	
	/**
	 * 修改订单.
	 * 
	 * @param order
	 */
	public Order getOrder(Long  orderId);
	
	/**
	 * 获取订单.
	 * 
	 * @param order
	 */
	public Order getOrder(String  orderNo);
	
	/**
	 * 修改订单.
	 * 
	 * @param order
	 */
	public void updateOrder(Order order);
	
	/**
	 * 删除申请订单.
	 * 
	 * @param orderId
	 */
	public void delOrder(Long orderId);
	
	/**
	 * 订单列表.
	 * 
	 * @param page
	 * @return
	 */
	public List<Order> listOrder(Page page);
	
	/**
	 * 根据日期查出相同开店日期、到期日期的订单.
	 * 
	 * @param year
	 * @param month
	 * @param day
	 * @return
	 */
	public List<Order> listOrderBySameDate(Integer year,Integer month,Integer day,Integer endYear,Integer endMonth,Integer endDay);
	
	/**
	 * 根据日期查出介于开店日期、到期日期之间的订单.
	 * 
	 * @param year
	 * @param month
	 * @param day
	 * @return
	 */
	public List<Order> listOrderByDate(Integer year,Integer month,Integer day,Integer endYear,Integer endMonth,Integer endDay);
	
	
	/**
	 * 取用户申请确认订单.
	 * 
	 * @param memberName
	 * @return
	 */
	public List<Order> getOrderByUser(String memberName);
	
	/**
	 * 取用户申请确认订单,加分页.
	 * 
	 * @param memberName
	 * @return
	 */
	public List<Order> getOrderByUser(String memberName,Page page);
	

}
